/**
 * @description: 项目入口文件
 * @author: nowThen
 */

import Vue from 'vue'
import App from './App.vue'
import router from './routers/'
import './routers/intercept'
import store from './stores'
import './services'
import 'lib-flexible'

import './styles/main.less'

import FastClick from 'fastclick'

FastClick.attach(document.body)

Vue.config.errorHandler = (err, vm, info) => {
  console.error(err)
}
Vue.config.devtools = process.env.NODE_ENV === 'development'
Vue.config.productionTip = process.env.NODE_ENV === 'production'

window.EventBus = new Vue()

window.myVue = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
